package com.dingup.provider.mapper;

import com.dingup.api.model.sys.DingtalkUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DingtalkUserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(DingtalkUser record);

    int insertSelective(DingtalkUser record);

    DingtalkUser selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(DingtalkUser record);

    int updateByPrimaryKey(DingtalkUser record);

    List<String> getInvalidUserId(@Param("userIds")List<String> userIds);

    void updateDelete(@Param("userIds") List<String> userIds, @Param("ifDelete")Boolean ifDelete);
}